//
// Created by Administrator on 2024/6/17.
//

#include <iostream>
#include <vector>
using namespace std;

int max(vector<int> v,int n,int m)
{
    if (n>=0)
    {
        if(m<v[n])
            m=v[n];
        return max(v,n-1,m);
    }
    return m;
}
int main()
{
    vector<int> l {5,8200,4,6,7,89,54,300,2};
    cout<<max(l,l.size()-1,l[l.size()-1]);
    return 0;
}